package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {

    @RequestMapping("/a")
    @ResponseBody
    public String a(){
        return "这是a方法";
    }

    @RequestMapping("/b")
    @ResponseBody
    public String b(){
        return "这是b方法";
    }

    @RequestMapping("/c")
    @ResponseBody
    public String c(){
        return "这是c方法 请你登陆";
    }

}
